package com.examination.service.impl;

import com.examination.bean.Selection;
import com.examination.bean.User;
import com.examination.dao.SelectionAdminDao;
import com.examination.service.ISelectionAdminService;
import com.examination.utils.DbUtil;
import com.examination.utils.PageInfo;
import com.examination.utils.ReflectionUtil;

import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;

public class SelectionAdminService implements ISelectionAdminService {
    private SelectionAdminDao selectionAdminDao = new SelectionAdminDao();

    /**
     * 查询库列表
     * @param selection
     * @return
     */
    @Override
    public List<Selection> getSelectionList(Selection selection) {
        //更多业务逻辑的处理代码
        return selectionAdminDao.getSelectionList(selection);
    }

    /**
     * 按分页查询数据库记录
     * @param pageInfo
     * @return
     */
    @Override
    public PageInfo<?> getSelectionListByPage(PageInfo<?> pageInfo) {
        return selectionAdminDao.getSelectionListByPage(pageInfo);
    }

    /**
     * 添加库记录
     * @param selection
     * @return
     */
    @Override
    public String addSelection(Selection selection) {
        return selectionAdminDao.addSelection(selection);
    }

}
